package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.sys.LoginDto;
import com.atguigu.spzx.model.dto.sys.SysUserDto;
import com.atguigu.spzx.model.entity.sys.SysUser;
import com.atguigu.spzx.model.vo.sys.LoginVo;
import com.github.pagehelper.PageInfo;

/**
 * title:
 * author: zgl
 * date: 2023/12/26
 * description：
 */
public interface SysUserService {
    LoginVo login(LoginDto loginDto);

//    SysUser getUserInfo(String token);
    SysUser getUserInfo();

    void logout(String token);

    PageInfo<SysUser> getUserList(Integer pageNum, Integer pageSize, SysUserDto sysUserDto);

    void deleteById(Long id);

    void saveUser(SysUser sysUser);

    void updateUser(SysUser sysUser);

    SysUser getUserById(Long id);
}
